Recording medium library device and control method thereof

ABSTRACT

A cassette library ( 1 ) is provided with a driving apparatus ( 13 ), cassette housing shelves ( 14, 15 ) and a cassette carrier ( 16 ). A library controller ( 2 ) simulates as if driving apparatuses ( 13 ) having continuous address numbers were apparently used in the. host computer ( 3 ) even when physically discontinuous address numbers are allocated to the driving apparatus ( 13 ), thereby making it possible to set occupancy for a driving apparatus with an arbitrary address number. The library controller ( 2 ) has the cassette carrier ( 16 ) automatically carry, at a preset timing, a cleaning cassette from the cassette housing shelf ( 14, 15 ) to the driving apparatus ( 13 ) to clean a recording reproduction head of the driving apparatus ( 13 ) using the cleaning cassette which is then carried back to the housing section in the original cassette housing shelf ( 14, 15 ) after the cleaning work.

This is a continuation of copending International ApplicationPCT/JP99/01877 having an international filing date of Apr. 8, 1999.

TECHNICAL FIELD

The present invention relates to a recording medium library device whichhouses a plurality of recording media loadable/unloadable to/from arecording and reproducing apparatus, such as cassette tapes, and iscapable of recording/reproducing various information to/from the housedrecording medium as necessary. The present invention also relates tomethods of setting occupancy, determining and notifying completion ofloading a recording medium, and cleaning for such a recording mediumlibrary device.

BACKGROUND ART

There has long been a system which houses a plurality of recording media(cassette tapes or disk-shaped recording media, for example)loadable/unloadable to/from a recording and reproducing apparatus andrecords various information onto the housed recording media andreproduces the recorded information as necessary. Such a system iscalled a library system, auto-changer, or the like. In the followingdescription, it will be called a library system.

Some library systems have predetermined compositions. Other librarysystems have compositions which can be adapted to a certain degree tosuit the user. An example of the latter library systems has a pluralityof consoles. The consoles are combined freely to form library systems ofvarious sizes and arrangements. Examples of the consoles are a driveconsole and a console for housing recording media. A drive console has arecording and reproducing apparatus which records and reproducesinformation onto/from a recording medium. A console for housingrecording media has a plurality of housing sections, each capable ofhousing a recording medium. Some consoles for recording and reproductionfurther comprise a plurality of housing sections, each capable ofhousing a recording medium. Moreover, the latter library systemcomprises a carrier apparatus and a control unit. The carrier apparatuscarries a recording medium between any one of the housing sections andthe recording and reproducing apparatus. The control unit controls therecording and reproducing apparatus and the carrier apparatus.

In the library system, under the control of the control unit, thecarrying apparatus is controlled to carry a recording medium between anyone of the housing sections and the recording and reproducing apparatus.Various information is recorded on the recording medium carried to therecording and reproducing apparatus, and the recorded information isreproduced.

Such a library system has some problems as described hereinbelow.

The first problem is as follows.

Some library systems are connected to one or more host computers servingas client(s) so that the host computer can use the library systems. Inthis case, a library system is connected to the host computer by, forexample, a transmission line of the standard for jukebox in the SCSI(Small Computer System Interface) standard established by ANSI (AmericanNational Standards Institute).

In cases, as for example where one library system is shared by aplurality of host computers, a control unit of the library system mayset occupancy of a plurality of recording and reproducing apparatuses,housing sections and the like for each host computer as a client. Theoccupancy is set through giving continuous address numbers to therecording and reproducing apparatuses and allocating the address numbersto each host computer. By the operation, each host computer can use onlythe occupied recording and reproducing apparatus and the like. At thistime, it is necessary to allocate continuous address numbers to one hostcomputer because of the standard of the transmission line used toconnect the host computer to the library system.

Conventionally, the only method of setting occupancy is therefore toallocate physically continuous recording and reproducing apparatuses orthe like to one host computer. An arbitrary address number cannot beallocated to one host computer. This results in a problem of the lowdegree of freedom in setting occupancy. For example, when one of thephysically continuous recording and reproducing apparatuses fails, theaddress numbers are interrupted. This causes a problem that, in the hostcomputer occupying the failed recording and reproducing apparatus, aprocess of changing the occupancy setting so as to occupy a recordingand reproducing apparatus for replacement cannot be performed.

The second problem is as follows.

In a library system having the composition as mentioned above, when arecording medium is carried by the carrying apparatus from the consolefor housing recording media and loaded to the recording and reproducingapparatus, the recording and reproducing apparatus performs a preparingoperation for reading predetermined retrieval information from theloaded recording medium. The retrieval information, which is read by thepreparing operation, includes information on, for example, an address onthe recording medium of data recorded on the recording medium. Byreading the retrieval information in advance, the processing speed withwhich data on the recording medium is accessed in response to areproduction request from an upper control computer can be increased.This speed-up contributes to the improvement of the processingefficiency of the library system as a whole.

In this case, after the preparing operation is finished, the recordingand reproducing apparatus notifies the upper control computer ofcompletion of carriage of the recording medium. When the upper controlcomputer receives the notification, the upper control computer issuesthe next recording medium carrying command to the library system.

The preparing operation requires, however, a relatively long time of 30seconds to one minute. During the period, the upper control computerremains waiting for the notification from the recording and reproducingapparatus of completion of carriage of the recording medium. Thecarrying apparatus of the library system therefore also remains waiting.This waiting period becomes a useless time, causing a problem ofdeterioration in the processing efficiency of the library system as awhole.

The third problem is as follows.

In a library system having the above-described composition, a number ofrecording media are used. In order to maintain always the high recordingand reproduction quality, it is necessary to clean the recording andreproducing head of the recording and reproducing apparatus periodicallyor as necessary. Conventionally, a cleaning medium is housed in part ofthe console for housing recording media. With manual operation by theuser, periodically or as necessary, the cleaning medium is carried fromthe console for housing recording media to each recording andreproducing apparatus to clean the head.

As described above, cleaning the head of the recording and reproducingapparatus by manual operation is time-consuming. Also, it is not easy tomanage timely head cleaning of each recording and reproducing apparatuswithout missing the timing of head cleaning. As a result, the operatingcost of the system is high and it is difficult to properly control thesystem operation. A possible way to deal with the problem is to performautomatically and periodically the head cleaning process of eachrecording and reproducing apparatus by using a cleaning medium housed inthe console for housing recording media.

When the recording medium used in the library system as described aboveis in a tape form such as a video cassette tape, the cleaning mediumused for cleaning the recording and reproducing apparatus is also in atape form. That is, a cleaning cassette is used. Some cleaning cassettescannot be rewound and used repeatedly and are to be disposed when thetape is used up. In order to ensure cleaning by using such a cleaningcassette, it is indispensable that a usable tape area is left in thecleaning cassette.

In cases where head cleaning is performed by manual operation, it ispossible to keep track of the amount of the usable tape area of thecleaning cassette accurately by checking the number of times eachcleaning cassette is used. If the number of times a cleaning cassette isused reaches a specified number, the cleaning cassette can be taken outfrom the cassette housing shelf and disposed.

On the other hand, in the cases of automatic head cleaning as mentionedabove, the user can no longer keep track of the number of times acleaning cassette is used. Consequently, a cleaning cassette whose tapehas been ended or a cleaning tape having an insufficient remainingamount may be used for the head cleaning process. It is also expectedthat the head cleaning is not performed at all or not performedsufficiently in practice. In order to prevent this, with each headcleaning process, the user has to unload the cleaning cassette used forthe head cleaning from a cassette housing shelf, visually check theremaining amount of the tape, and determine whether the head cleaninghas been performed properly or failed since the tape is ended. Thismakes the automatization of the head cleaning process meaningless.

Disclosure of Invention

The invention has been achieved in consideration of the above problems.It is an object of the invention to provide a recording medium librarydevice capable of freely setting occupancy for a client and a method ofsetting occupancy.

Another object of the invention is to provide a recording medium librarydevice capable of improving the efficiency of the whole system byeliminating useless waiting time related to carriage of a recordingmedium, and a method for determining completion of loading a recordingmedium, and a method for notifying completion of loading a recordingmedium.

Still another object of the invention is to provide a recording mediumlibrary device which enables proper management of use of a cleaningmedium housed in a console for housing a recording medium so as toensure cleaning, and to provide a cleaning method.

A recording medium library device according to the invention comprises:one or more recording and reproducing means for performing at leasteither recording or reproduction of information by using a removablerecording medium; recording medium housing means having a plurality ofhousing sections, each capable of housing the recording medium; carryingmeans for carrying the recording medium between any one of the housingsections in the recording medium housing means and the recording andreproducing means; and control means for controlling the carrying meansand the recording and reproducing means in response to a request from aclient, wherein the control means has a function of setting a part to beoccupied for one or more clients and a function of converting between aphysical address and a logical address managed by the client, withrespect to a part to be occupied. In the recording medium librarydevice, conversion between a physical address and a logical addressmanaged by a client is performed and a part to be occupied is set forone or more client(s) by the control means.

An occupancy setting method according to the invention is a method ofsetting a part to be occupied for each client in a recording mediumlibrary device which comprises: one or more recording and reproducingmeans for performing at least either recording or reproduction ofinformation by using a removable recording medium; recording mediumhousing means having a plurality of housing sections, each capable ofhousing the recording medium; carrying means for carrying the recordingmedium between any one of the housing sections in the recording mediumhousing means and the recording and reproducing means; and control meansfor controlling the carrying means and the recording and reproducingmeans in response to a request from a client, wherein the control meanssets a part to be occupied for one or more client(s) and convertsbetween a physical address and a logical address managed by the client,with respect to a part to be occupied. In the occupancy setting methodfor the recording medium library device, in the control means,conversion between a physical address and a logical address managed bythe client is performed and a part to be occupied is set for one or moreclient(s).

Another recording medium library device according to the inventioncomprises: recording and reproducing means for performing at leasteither recording or reproduction of information by using a removablerecording medium; recording medium housing means having a plurality ofhousing sections, each capable of housing the recording medium; carryingmeans for carrying the recording medium between any one of the housingsections in the recording medium housing means and the recording andreproducing means; detecting means for detecting carriage of therecording medium by the carrying means to the recording and reproducingmeans; and control means for controlling the carrying means and therecording and reproducing means, the control means having the functionof sending a request to load the recording medium housed in the housingsection in the recording medium housing means into the recording andreproducing means to the carrying means, and when the detecting meansdetects the carriage of the recording medium to the recording andreproducing means, determining that the loading of the recording mediumhas been completed, without waiting for completion of a preparingoperation in the recording and reproducing means after the recordingmedium has been loaded. The control means can be constructed to send arequest to load the recording medium housed in the housing section inthe recording medium housing means into the recording and reproducingmeans in response to a request from the client and, when it isdetermined that the loading of the recording medium into the recordingand reproducing means has been completed, to send a notification of therecording media loading completion to the client.

According to the invention, there is provided a method of determiningcompletion of loading of a recording medium in a recording mediumlibrary device which comprises: recording and reproducing means forperforming at least either recording or reproduction of information byusing a removable recording medium; recording medium housing meanshaving a plurality of housing sections, each capable of housing therecording medium; carrying means for carrying the recording mediumbetween any one of the housing sections in the recording medium housingmeans and the recording and reproducing means; detecting means fordetecting carriage of the recording medium by the carrying means to therecording and reproducing means; and control means for controlling thecarrying means and the recording and reproducing means, wherein thecontrol means sends to the carrying means a request to load therecording medium housed in the housing section in the recording mediumhousing means to the recording and reproducing means and, when thedetecting means detects the carriage of the recording medium to therecording and reproducing means, determines that the loading of therecording medium has been completed, without waiting for completion of apreparing operation in the recording and reproducing means after therecording medium has been loaded.

According to the invention, there is provided a method of notifying aclient of completion of loading of a recording medium in a recordingmedium library device which comprises: recording and reproducing meansfor performing at least either recording or reproduction of informationby using a removable recording medium; recording medium housing meanshaving a plurality of housing sections, each capable of housing therecording medium; carrying means for carrying the recording mediumbetween any one of the housing sections in the recording medium housingmeans and the recording and reproducing means; detecting means fordetecting carriage of the recording medium to the recording andreproducing means; and control means for controlling the carrying meansand the recording and reproducing means in response to a request from aclient, wherein in the control means, when a request to load therecording medium housed in the housing section in the recording mediumhousing means into the recording and reproducing means is received fromthe client and the carriage of the recording medium is detected by thedetecting means, it is determined that the loading of the recordingmedium has been completed, without waiting for completion of thepreparing operation in the recording and reproducing means after therecording medium is loaded and the completion of loading of therecording medium is notified to the client.

In the recording medium library device or the method of determiningcompletion of loading of a recording medium for the device of theinvention, the request to load the recording medium housed in thehousing section in the recording medium housing means to the recordingand reproducing means is sent to the carrying means. When the carriageof the recording medium to the recording and reproducing medium isdetected by the detecting means, it is determined that the loading ofthe recording medium has been completed, without waiting for completionof the preparing operation to be executed by the recording andreproducing means after the recording medium is loaded.

In a method of notifying completion of loading of a recording media fora recording medium library device according to the invention, inresponse to a request from the client, a request to load the recordingmedium housed in the housing section in the recording medium housingmeans to the recording and reproducing means is sent to the carryingmeans. When the carriage of the recording medium to the recording andreproducing means is detected by the detecting means, it is determinedthat the loading of the recording medium has been completed, withoutwaiting for completion of the preparing operation to be executed by therecording and reproducing means after the recording medium is loaded,and the client is notified of the completion of loading of the recordingmedium.

Still another recording medium library device of the inventioncomprises: recording and reproducing means for performing at leasteither recording or reproduction of information by using a removablerecording medium; recording medium housing means having a plurality ofhousing sections, each capable of housing the recording medium; carryingmeans for carrying the recording medium between any one of the housingsections in the recording medium housing means and the recording andreproducing means; and control means for controlling the carrying meansand the recording and reproducing means, wherein the control means hasan automatic cleaning function of controlling the carrying means and therecording and reproducing means to automatically carry, at a presettiming, a cleaning medium used for cleaning the recording andreproducing means from the housing section in the recording mediumhousing means to the recording and reproducing means, to allow thecleaning medium to clean the recording and reproducing means, and thento carry the cleaning medium to the housing section in the recordingmedium housing means, and a function of monitoring a state of use of thecleaning medium and determining whether the cleaning medium has beenused to its limit or not. When the number of times the cleaning mediumis used reaches a predetermined number or when there is no usable areaof the cleaning medium, the control means can determine that thecleaning medium has been used to its limit. In addition to the aboveconfiguration, the recording medium library device can further comprisean ejecting unit for ejecting the recording medium and the cleaningmedium to the outside, and the cleaning medium can be carried to theejecting unit when it is determined that the cleaning medium has beenused to its limit. The control means may be also configured to outputinformation to eject the cleaning medium when it is determined that thecleaning medium has been used to its limit.

According to a cleaning method of a recording medium library device ofthe invention comprising: recording and reproducing means for performingat least either recording or reproduction of information by using aremovable recording medium; recording medium housing means having aplurality of housing sections, each capable of housing the recordingmedium; carrying means for carrying the recording medium between any oneof the housing sections in the recording medium housing means and therecording and reproducing means; and control means for controlling thecarrying means and the recording and reproducing means, the controlmeans controls the carrying means and the recording and reproducingmeans to automatically carry, at a preset timing, a cleaning medium usedfor cleaning the recording and reproducing means from the housingsection in the recording medium housing means to the recording andreproducing means, to allow the cleaning medium to clean the recordingand reproducing means, after that, to carry the cleaning medium to thehousing section in the recording medium housing means, while monitoringthe state of use of the cleaning medium and determining whether thecleaning medium has been used to its limit or not.

In still another recording medium library device or a cleaning methodthereof according to the invention, the cleaning medium is automaticallycarried from the housing section in the recording medium housing meansto the recording and reproducing means at a preset timing. The recordingand reproducing means is cleaned by the cleaning medium. After that, thecleaning medium is carried to the housing section in the recordingmedium housing means. The state of use of the cleaning medium ismonitored and it is determined whether the cleaning medium has been usedto its limit or not.

Other objects, features and advantages of the invention will appear morefully from the following description.

BRIEF DESCRIPTION OF DRAWINGS

FIG. 1 is a front view showing a basic composition of a library systemaccording to an embodiment of the invention.

FIG. 2 is a plan view showing an example of an overall composition of acassette library illustrated in FIG. 1.

FIG. 3 is a block diagram showing a circuit composition of a librarycontroller illustrated in FIG. 1.

FIG. 4 is a block diagram showing a functional composition of thelibrary controller illustrated in FIG. 1.

FIG. 5 is a block diagram showing a circuit composition of a basicconsole illustrated in FIG. 1.

FIG. 6 is a block diagram showing a circuit composition of a junctionconsole illustrated in FIG. 1.

FIG. 7 is a perspective view of the appearance showing a state where acassette is inserted into a driving apparatus.

FIG. 8 is an explanatory diagram showing an example of recorded data ina cassette tape.

FIG. 9 is an explanatory representation of a main view for controldisplayed in the library controller illustrated in FIG. 1.

FIG. 10 is an explanatory representation of a view for setting occupancydisplayed in the library controller illustrated in FIG. 1.

FIG. 11 is an explanatory representation of another view for settingoccupancy displayed in the library controller illustrated in FIG. 1.

FIGS. 12A and 12B are explanatory diagrams showing tables used forsetting occupancy in the library controller illustrated in FIG. 1.

FIG. 13 is an explanatory diagram showing a conversion table used forsetting occupancy in the library controller illustrated in FIG. 1.

FIG. 14 is a flowchart for explaining an occupancy setting processexecuted in the library controller illustrated in FIG. 1.

FIG. 15 is an explanatory diagram for explaining a modification of thelibrary system shown in FIG. 1.

FIG. 16 is a flowchart for explaining a process for carrying a cassetteexecuted by the library controller shown in FIG. 1.

FIG. 17 is a flowchart for explaining a process for cleaning the head ofthe driving apparatus executed by the library controller shown in FIG.1.

BEST MODE FOR CARRYING OUT THE INVENTION

Embodiments of the invention will be described in detail hereinbelowwith reference to the drawings.

FIGS. 1 and 2 are schematic illustrations of a library system as arecording medium library apparatus according to an embodiment of theinvention. FIG. 1 is a front view of a basic composition of a librarysystem according to the embodiment. FIG. 2 is a plan view showing anoverall composition of a cassette library 1 illustrated in FIG. 1.

The library system according to the embodiment comprises the cassettelibrary 1 and a library controller 2 as control means for controllingthe cassette library 1. The cassette library 1 houses a plurality ofvideo tape cassettes (hereinbelow, simply referred to as cassettes) K asrecording media, and records and reproduces information on demand byusing any one of the cassettes K housed therein.

The library controller 2 comprises: a controller body 21 as an apparatusfor controlling the cassette library 1; an input device 22 including amouse or a keyboard for inputting information necessary for control,giving instructions or other requests to the controller body 21; and adisplay device 23 connected to the controller body 21 and having adisplay screen for displaying information or other various messagesassociated with the control. The controller body 21 is connected to thecassette library 1 by transmission lines 24 and 25 of, for example, theRS-232C standard. The controller body 21 can be connected to a pluralityof host computers 3 a and 3 b as clients who use the cassette library 1,by transmission lines 31 a and 31 b of, for example, the standard forjukebox in the SCSI (Small Computer System Interface) standard. Thecontroller body 21 can be also connected to the host computers 3 a and 3b via a communication network 32 of a predetermined standard such asEthernet.

The host computer 3 a is, for example, used as a client which occupies apredetermined occupancy area in the cassette library 1, such as thelower-half area 30 a of the cassette library 1, and uses the area as amain server for recording and reproducing data. The host computer 3 b isemployed as a client which occupies a predetermined occupancy area, suchas the upper-half area 30 b of the cassette library 1, and uses the areafor backup of data. Setting occupancy for determining which area in thecassette library 1 is occupied by the host computers 3 a and 3 b isperformed by the library controller 2.

The cassette library 1 comprises four kinds of consoles, namely, a basicconsole 1B, a drive console 1D, a cassette console 1C and a junctionconsole 1J. The cassette library 1 also comprises a cassette carrier 16as carrying means for carrying a cassette K in the cassette library 1.The four kinds of consoles are selectively connected to one another soas to be able to change the position thereof. The cassette library 1 canhave various library compositions, comprising part or all of the fourkinds of consoles. A minimum of components of the cassette library 1necessary to realize the library system are the basic console 1B and thedrive console 1D.

FIG. 1 shows only an example of basic compositions of the cassettelibrary 1. As shown in FIG. 1, one side face of the drive console 1D isconnected to one side face of the basic console 1B and one side face ofthe cassette console 1C is connected to another side face of the driveconsole ID. The cassette library shown in FIG. 2 comprises a consoleline L1 as a base, and console lines L2 and L3. The console line L1comprises alternate drive consoles 1D (1D₁₁, 1D₁₂, . . . ) andcassetteconsoles 1C₁₂, . . . ) connected with each other in a lineextending from one side face of the basic console 1B in the order named.The console line L2 comprises alternate drive consoles 1D (1D₂₁, 1D₂₂, .. . ) and cassette consoles 1C (1C₂₁, 1C₂₂, . . . ) connected with eachother in a line extending from the front face of the drive console 1D₁₁with a junction console 1J₁ connected in between. The console line L3comprises alternate drive consoles 1D (1D₃₁, 1D₃₂, . . . ) and cassetteconsoles 1C (1C₃₁, 1C₃₂, . . . ) connected with each other in a lineextending from the front face of the cassette console 1C₁₂ with ajunction console 1J₂ connected in between. As shown in FIG. 2, in thecase in which there are provided a plurality of console lines, each ofthe console lines is mounted with an associated cassette carrier 16. Thecassette K is transferred between two console lines via a junction port18 in the junction console 1J.

The connection between the consoles is not limited to that shown inFIGS. 1 and 2. For example, even a cassette library with the compositionin which only the basic console 1B and the drive console 1D areconnected can perform basic functions of a library system.

In the cassette library 1, the drive console 1D has one or a pluralityof driving apparatuses 13 and a cassette housing shelf 14. The drivingapparatuses 13 work as recording and reproducing means (for example,VCR) for recording and reproducing information to/from the cassette K.It is sufficient for the drive console 1D to have at least the drivingapparatus 13 and it is not always necessary for the drive console 1D tohave the cassette housing shelf 14. The drive console 1D also has adrive control unit 70 (see FIG. 2) for controlling the drivingapparatuses 13. The data to be recorded on the cassette K in the drivingapparatus 13 is, for example, data supplied from a video editingapparatus (not shown) formed by RAID (Redundant Array of InexpensiveDisks), a semiconductor memory, and the like. Further, data reproducedfrom the driving apparatus 13 is supplied to the video editingapparatus. The driving apparatus 13 has a mechanism (not shown) fordetecting whether the tape of the loaded cassette K or a cleaningcassette KC, which will be described hereinlater, is ended or not. Themechanism can be realized by a method of making the transmittance of theend part of the tape higher than that of the other part and detectingthe end part by a photosensor of transmittance mode or a method ofmaking the reflectance of the end part of the tape higher than that ofthe other part and detecting the end part by a photosensor ofreflectance mode. In the description given hereinbelow, the cassette Kincludes the cleaning cassette KC unless otherwise described. Thecassette console 1C has a cassette housing shelf 15 which has aplurality of housing sections and can house a plurality of cassettes K.The cassette housing shelves 14 and 15 are partially detached so thatthe cassette K can be received/transferred from/to the junction console1J when the junction console 1J is connected to the drive console 1D andthe cassette console 1C.

In a predetermined section of the cassette housing shelf 14, one or aplurality of cleaning cassette(s) KC (not shown) used to clean therecording and reproduction head (not shown) of the driving apparatus 13is/are housed. The position where the cleaning cassette KC is housed iscaptured by the library controller 2. Specifically, as will be describedhereinlater, address information on the position where the cleaningcassette is housed is stored in the system information file in a harddisk of a hard disk drive 49 in the library controller 2. In theembodiment, it is assumed that the cleaning cassette KC cannot berewound and repeatedly used and is to be disposed when the tape is usedup.

The driving apparatuses 13 of the drive console 1D can be connected to,for example, the host computer 3 a by transmission lines 33 and 34 ofthe SCSI standard. The driving apparatuses 13 can be connected to, forexample, the host computer 3 b by transmission lines 35 and 36 of theSCSI standard. Only one of the host computers 3 a and 3 b can beconnected to a single driving apparatus 13. For example, information tobe recorded to the cassette K is transmitted to the driving apparatus 13from the host computers 3 a and 3 b, which are connected to the drivingapparatus 13 by the transmission lines 35 and 36. Conversely,information read out by the driving apparatus 13 is transmitted to thehost computers 3 a an d 3 b via the transmission lines 35 and 36.Setting occupancy by determining which of the driving apparatuses 13 isoccupied by the host computers 3 a and 3 b is executed by the librarycontroller 2.

The basic console 1B comprises an input/output port 11 and a displayunit 12. The input/output port 11 imports the cassette K from the frontface thereof into the library and automatically exports the cassette Kin the library to the outside. The display unit 12 is provided on thefront face of the basic console 1B and displays various information suchas control information regarding the cassette library 1. The basicconsole 1B also has a bar code reading apparatus (not shown) for readingbar code information on 1D (identification information) given to theimported cassette K. The input/output port 11 is comprised of an upperport 11 a provided on the upper stage of the basic console 1B and alower port 11 b provided on the lower stage. The upper and lower portsla and 11 b are provided for the purposes of loading and ejecting thecassette K, each having a plurality of (for instance, four) input/outputports. The display unit 12 takes the form of, for instance, a liquidcrystal display device. The basic console 1B further comprises a basiccontrol unit 60 (see FIG. 2) and a main drive control unit 61 (see FIG.2). The basic control unit 60 is connected to the controller body 21 ofthe library controller 2 by the transmission line 24. The main drivecontrol unit 61 is connected to the drive control unit 70. The maindrive control unit 61 is also connected to the controller body 21 by thetransmission line 25.

The junction console 1J is used to extend the connection between theconsoles, one side face thereof being connectable to the front face orrear face of another console. As shown in FIG. 2, on one side face ofthe junction console 1J, provided is a junction port 18 having themechanism of transferring the cassette K to/from other consolesconnected. The junction port 18 occupies a position opposite to theupper port 11 a in the basic console 1B. On the front face of thejunction console 1J, provided is an input/output port 17 having thefunction similar to that of the input/output port 11 of the basicconsole 1B. The input/output port 17 takes up a position opposite to thelower port 11 b in the basic console 1B. The junction console 1J alsohas a basic control unit 80 for controlling the mechanism oftransferring the cassette K in the junction port 18 and controlling thecassette carrier 16 or other components in an extended console line. Thebasic control unit 80 is electrically connected to the basic controlunit 60 in the basic console 1B. Otherwise, the basic composition of thejunction console 1J is similar to that of the basic console 1B.

In the center part of each of the basic console 1B, drive console 1D,cassette console 1C and junction console 1J, as shown in FIG. 2,provided is a carrying area 103 as a space for travel of the cassettecarrier 16. In the carrying area 103, a guide rail 101 as a carriagepath for travel of the cassette carrier 16 is laid in the direction inwhich the cassette carrier 16 is carried. Further, on a side of theguide rail 101, provided is a rail 102 for energization for supplyingthe cassette carrier 16 with power.

The cassette carrier 16 is capable of horizontal movements, in thecarrying area 103, along the guide rail 101 while holding the cassetteK, with power supplied by the rail 102 for energization. The cassettecarrier 16 is also capable of vertical (up-and-down) movements in theconsoles by a vertical movement mechanism (not shown) while holding thecassette K. Moreover, the cassette carrier 16 has a mechanism oftransferring the cassette K to/from each console. For example, thecassette carrier 16 can carry the cassette K imported via theinput/output port 11 in the basic console 1B for delivery to thecassette housing shelf 15 in the cassette console 1C.

FIG. 3 is a block diagram showing the circuit composition of the librarycontroller 2. The controller body 21 of the library controller 2comprises a screen control unit 41 for controlling the display device23, an input control unit 42 for controlling the input device 22, anSCSI control unit 43 for executing control to connect the host computers3 a and 3 b to the library controller 2 in the SCSI standard by thetransmission lines 31 a and 31 b, and a network control unit 44 forperforming control to connect the communication network 32 to thelibrary controller 2. The components in the controller body 21 areconnected to each other via an internal bus 40.

The library controller 2 also comprises, for example: a serial linecontrol unit 45 for performing control to connect the cassette library 1to the library controller 2 by the transmission lines 24 and 25 of, forexample, the RS-232C standard; a central processing control unit 46including a CPU (central processing unit) and the like, for executingcontrol of the whole library controller 2 and substantial control of thecassette library 1; a read only memory 47 which stores a basic programand the like necessary to perform a basic operation of the librarycontroller 2 itself; a temporary memory 48 serving, for example, as awork area used when the central processing control unit 46 executes aprogram; a hard disk drive 49 for driving a built-in hard disk forstoring various information such as a database regarding systeminformation of the library system; and a floppy disk (written as “FD” inthe figure) drive 50 for recording and reproducing information to/from afloppy disk. A program for controlling the cassette library 1 is storedin the hard disk driven by the hard disk drive 49. The centralprocessing control unit 46 executes the program, thereby realizing thefunction of controlling the cassette library 1.

FIG. 4 is a block diagram showing a main part of the functionalcomposition of the library controller 2. The library controller 2comprises a control function unit 55 having the function of controllingthe input device 22, the display device 23 and the cassette library 1.The control function unit 55 comprises: a main control unit 51 havingthe function of performing control of the whole library controller 2 andsubstantial control of the cassette library 1; a screen control unit 52which is connected to the main control unit 51 and functions to controlthe display device 23; an input control unit 53 which is connected tothe main control unit 51 and functions to control the input device 22;and a storing unit 54 having the function of storing various informationsuch as a database regarding system information of the library system.

FIG. 5 is a block diagram showing the circuit composition of the basicconsole 1B. The basic console 1B has: the basic control unit 60connected to the controller body 21 of the library controller 2 by thetransmission line 24, for executing control of the basic console 1Bitself, control of the cassette carrier 16, and control of othercomponents; and the main drive control unit 61 which is connected to thecontroller body 21 of the library controller 2 by the transmission line25 and connected to the drive control unit 70 in the drive console 1D,for allowing the drive control unit 70 to control the driving apparatus13. The main drive control unit 61 is realized by, for example, amicrocomputer.

The basic control unit 60 comprises: a console control unit 62 forexecuting control of each of the components in the basic control unit60, control of the cassette carrier 16, and control of other components;an inter-console-line communication unit 63 for carrying outcommunications with the extended console lines L2 and L3 via acommunication line 72; a console composition obtaining unit 64 forobtaining information on, for example, the composition of each of theconsoles which form the console line L1 as a base, the console line L1including the basic console 1B; a display control unit 65 for performingdisplay control of the display unit 12 (see FIG. 1) provided on thefront face of the basic console 1B; an input/output port control unit 66for executing control of the mechanism of transferring the cassette K inthe input/output port 11 (see FIG. 1) provided on the front face of thebasic console 1B; and a carrier communication unit 67 for performingcommunication for control with the cassette carrier 16 by using infraredrays 71. The components of the basic control unit 60 are connected toeach other via an internal bus 68. The console control unit 62 isrealized by, for example, a microcomputer.

The console composition obtaining unit 64 obtains information on, forexample, the composition of each of the consoles which form the consoleline L1 as a base from composition information transmitting units 10B,10D₁₁, 10C₁₁, 10D₁₂, . . . of the respective consoles.

The console control unit 62 transmits information on the composition ofthe consoles in the console line L1 as a base obtained by the consolecomposition obtaining unit 64 to the library controller 2. The consolecontrol unit 62 also transmits information on the composition of theconsoles in other console lines received via the inter-console-linecommunication unit 63 and other information to the library controller 2.

FIG. 6 is a block diagram showing a circuit composition of the junctionconsole 1J_(j) (j=1, 2). The junction console 1J_(j) has the basiccontrol unit 80 for performing control of the junction console 1J_(j)itself, control of the cassette carrier 16 in the console lines L1 (i=2,3) extended by the junction console 1J_(j), and control of othercomponents; and a main drive control unit 81 for allowing the drivecontrol unit 70 to control the driving apparatus 13 in a console lineextended by the junction console 1J_(j) as necessary. The main drivecontrol unit 81 is used to interface between the main drive control unit61 of the basic console 1B and the drive control units 70 in a pluralityof drive consoles 1D when a number of drive consoles 1D are used.

The basic control unit 80 has a console control unit 82, aninter-console-line communication unit 83, a console compositionobtaining unit 84, a display control unit 85, an input/output portcontrol unit 86, and a carrier communication unit 87. The consolecomposition obtaining unit 84 obtains information on, for example, thecomposition of the consoles which form the extended console line L1 fromthe composition information transmitting units 10J, 10D_(i1), 10C_(i1),10D_(i2), . . . of the respective consoles. The basic control unit 80also has a junction port control unit 89 for controlling the mechanismof transferring the cassette K in the junction port 18 (see FIG. 2)provided on the side face of the junction console 1J. The components ofthe basic control unit 80 are connected to each other via an internalbus 88. The components of the basic control unit 80 except for thejunction port control unit 89 have the functions basically similar tothose of the components of the basic control unit 60 in the basicconsole 1B.

Information on the composition is transmitted to the console controlunit 82 from the composition information transmitting units of theconsoles in the other console line (the console line L1 in the exampleof FIG. 2) to which the junction console 1J_(j) is connected. Forexample, in the case of the junction console 1J₁, information 90 on thecomposition is transmitted from the composition information transmittingunit 10D₁₁ in the drive console 1D₁₁ shown in FIG. 5 to the consolecontrol unit 82 shown in FIG. 6. Thus, the connection between theconsole lines can be recognized.

FIG. 7 shows the external composition of the driving apparatus 13 in thedrive console 1D. As shown in the figure, the driving apparatus 13 has acassette loading/ejecting port 131 for loading/ejecting the cassette Kon the front face side. The cassette K carried from the cassette housingshelf 14 or 15 by the cassette carrier 16 (not shown in FIG. 7) isinserted and loaded into the driving apparatus 13 through the cassetteloading/ejecting port 131.

On both ends of the cassette loading/ejecting port 131, a photosensor132 of transmittance mode having a set of a light emitting part 132 aand a light receiving part 133 b is disposed. The photosensor 132 isused to sense that the cassette K is loaded into the driving apparatus13 through the cassette loading/ejecting port 131. When the cassette Kpasses between the light emitting part 132 a and the light receivingpart 133 b, light emitted from the light emitting part 132 a to thelight receiving part 133 b is temporarily interrupted by the cassette Kand is not sensed by the light receiving part 133 b. After that, whenthe cassette K has passed, the light receiving part 133 b receives lightfrom the light emitting part 132 a again. That is, in the event ofloading the cassette K to the driving apparatus 13, the level of acassette carriage detection signal 135 outputted from the lightreceiving part 133 b changes in the order: H-L-H.

The driving apparatus 13 controlled by the drive control unit 70 (seeFIG. 5) is set either in automatic loading mode or in on-demand loadingmode. The automatic loading mode is a mode of automatically performing aloading process for reading predetermined retrieval information from atape 200 of the cassette K after the loading of the cassette K. Theon-demand loading mode is a mode of performing the loading process ondemand from the library controller 2. The mode setting information onthe mode currently set is stored in a non-volatile memory (not shown) inthe drive control unit 70. The mode setting information is also storedin a system information file in the hard disk in the hard disk drive 49in the library controller 2. The loading process corresponds to the“preparing operation” in the invention.

FIG. 8 schematically shows data recorded on the tape 200 of the cassetteK. Subsequent to the header part 201 at the front end of the tape, aretrieval information recording part 202 is provided. Further, in thesubsequent data recording area 203, data such as video data or audiodata is sequentially recorded. In the retrieval information recordingpart 202 retrieval information as information on an address of each datarecorded on the tape is recorded. In the diagram, data A, B, C, . . . isrecorded in the data recording area 203 while the head address of eachof the areas in which the data A, B, C, . . . is recorded is recorded asretrieval information in the retrieval information recording part 202.By reading the retrieval information at the beginning, when reproductionof each data is requested later on, the target data can be promptlyaccessed. When the drive control unit 70 for controlling the drivingapparatus 13 confirms completion of the loading process in the drivingapparatus 13, the drive control unit 70 sends a loading completionnotification to the library controller 2 via the main drive control unit61 of the basic console 1B.

Referring again to FIG. 7, the cassette carriage detection signal 135outputted from the light receiving part 133 b of the photosensor 132 issent to the library controller 2 via the console control unit 62 shownin FIG. 5. By the change in the level of the cassette carriage detectionsignal 135 as H-L-H, the library controller 2 can recognize that thecassette K has been carried to the driving apparatus 13.

The library controller 2 is set in either of the following two modes:one mode in which the library controller 2 immediately determines thatloading of the cassette is completed when the library controller 2recognizes the cassette carriage completion by means of the cassettecarriage detection signal 135 from the photosensor 132, without waitingfor the end of the loading process in the driving apparatus 13(hereinbelow, referred to as immediate determining mode); another modein which the library controller 2 determines that loading of thecassette is completed at the time of the end of the loading processafter the library controller 2 recognizes the cassette carriagecompletion by means of the signal from the photosensor 132 (hereinbelow,referred to as load waiting mode). The mode to be set is preliminarystored in the system information file in the hard disk mounted in thehard disk drive (see FIG. 3) in the library controller 2.

FIGS. 9 to 11 show an example of the view for control displayed on thedisplay device 23 of the library controller 2. The library controller 2allows the display device 23 to display a view for control realizing theinterface in the GUI (Graphical User Interface) environment in which theuser can perform operations on the view by using a mouse or the like.

The view for control shown in FIG. 9 is displayed as, for example, amain view for control when the library controller 2 is started. On themain view, a menu bar or the like for instructing the control of thelibrary system is displayed in a predetermined area (area 91 in FIG. 9).Also, information on the basic composition of the cassette library 1 isgraphically displayed in a predetermined area (area 92 in FIG. 9) sothat the user can immediately grasp the composition. At the time ofactivation of the library controller 2, the library controller 2acquires information on the current composition of the console, such asthe kind of each console and connection between the consoles, from thecassette library 1. On the basis of the acquired information, thegraphic view in the form shown in the area 92 in FIG. 9 is displayed. Asdescribed above, the console composition obtaining unit 64 in the basiccontrol unit 60 of the basic console 1B obtains information on theconsoles transmitted from the composition information transmitting units10B, 10D₁₁, 10C₁₁, 10D₁₂, . . . Furthermore, the inter-console-linecommunication unit 63 similarly obtains information on the consolecomposition from the composition information transmitting units of theother consoles. The information on the composition and the like istransmitted to the library controller 2 via the console control unit 62.Thereby, the library controller 2 can display the graphic view as shownin FIG. 9 by using the information.

In FIGS. 10 and 11, in the parts designated by [Bus No.], information onthe transmission lines to which the host computers 3 a and 3 b areconnected is indicated. For example, BusO corresponds to thetransmission line 31 a (FIG. 1) to which the host computer 3 a isconnected while Bus 1 corresponds to the transmission line 31 b to whichthe host computer 3 b is connected. In the parts designated by [Inport],the areas of the input/output ports of the input/output port 11 of thebasic console 1B and the input/output port 17 of the junction console 1Joccupied by the host computers 3 a and 3 b are indicated by physicaladdress numbers. In the parts designated by [Hidden Bin], areas of thehousing sections in the cassette housing shelf 14 of the drive console1D and the cassette housing shelf 15 of the cassette console 1C occupiedby the host computers 3 a and 3 b are indicated by physical addressnumbers. In the parts designated by [Drive], areas of the drivingapparatuses 13 of the drive console 1D occupied by the host computers 3a and 3 b are indicated by physical address numbers.

FIG. 10 shows a main view for setting, which is used to set occupancy.In the main view for setting, information on occupancy setting for allof the host computers 3 a and 3 b connected to the library controller 2is shown. The user can select the host computer 3 a or 3 b for whichoccupancy setting is to be performed, on the main view for settingoccupancy. In FIG. 10, the selected part is shown in a state where whitetext is on black. The main view for setting as shown in FIG. 10 isdisplayed by selecting “Setup” menu in the menu bar on the main view forcontrol as shown in FIG. 9 and then selecting “Bin Division” menu in apull-down menu (not shown).

FIG. 11 shows a view displayed when the host computer 3 a or 3 b forwhich the occupancy setting is to be performed is selected (the leftmouse button is double clicked) on the main view for occupancy settingas shown in FIG. 10, or when a new creation button 120 shown in FIG. 10is selected to perform occupancy setting for a new host computer. Theuser can designate the area to be occupied for the host computers 3 aand 3 b by inputting an address number or the like on the setting viewas shown in FIG. 11. The library controller 2 performs an internalprocess regarding setting occupancy on the basis of the data designatedon the setting view as shown in FIG. 11. The hard disk of the librarycontroller 2 includes three tables: (i) a basic table for storing anaddress number indicative of an area to be occupied; (ii) an extensiontable used together with the basic table when physically discontinuousaddress numbers are designated; (iii) a conversion table for convertingthe physically discontinuous address numbers into continuous addressnumbers when the physically discontinuous address numbers are designatedand for allocating the converted continuous address numbers as logicaladdress numbers managed by the host computers 3 a and 3 b.

On the setting view as shown in FIG. 11, with respect to the occupiedarea of the driving apparatus 13, provided are check boxes 110 by whichthe user can allocate the driving apparatuses 13 with the physicallydiscontinuous address numbers to the host computer 3 a or 3 b.

On the setting view as shown in FIG. 11, the user can designatearbitrary check boxes 110, thereby designating the driving apparatuses13 with the physically discontinuous address numbers to one of the hostcomputers 3 a and 3 b. When the physically discontinuous address numbersare designated with respect to the driving apparatuses 13 on the settingview as shown in FIG. 11, the library controller 2 records informationon the discontinuous address numbers by using the extension table.Further, when the physically discontinuous address numbers aredesignated with respect to the driving apparatuses 13 on the settingview as shown in FIG. 11, the library controller 2 converts thephysically discontinuous address numbers to continuous address numbersby using the conversion table and allocates the converted continuousaddress numbers as logical address numbers managed by the host computers3 a and 3 b.

FIG. 12 are explanatory diagrams showing the structure of each of thetables for allocating address numbers. The tables are used for theoccupancy setting process by the library controller 2. FIG. 12A shows abasic table used for the occupancy setting process, in which informationon the occupied area with respect to areas of the housing sections ofthe cassette housing shelves 14 and 15 is described by the head physicaladdress number in the occupied area (internal BIN head No.) and the endaddress number (internal BIN end No.). In the basic table, theinformation on the occupied area with respect to the input/output portsof the input/output ports 11 and 17 is also described by the headaddress number (INPORT head No.) and the end address number (INPORT endNo.) of the physical address numbers of the occupied area. In the basictable, the information on the occupied area with respect to the drivingapparatuses 13 is described by the head address number (drive head No.)and the end address number (drive end No.) of the physical addressnumbers of the occupied area. Further, in the basic table, informationon the existence of the extension table subsequent to the basic table(continuation present/absent) is described. When the extension tablesubsequent to the basic table exists, (continuation present) isdescribed.

FIG. 12B shows the extension table used when the physicallydiscontinuous address numbers are designated with respect to the drivingapparatuses 13. In the extension table, described are the head physicaladdress number (drive head No.) and the end address number (drive endNo.) of the occupied area at the next stage of the occupied area withrespect to the driving apparatuses 13 described in the basic table. Inthe extension table, information on the existence of the subsequentextension table (continuation present/absent) is described. When thesubsequent extension table exists, (continuation present) is described.

FIG. 13 is an explanatory diagram showing the structure of theconversion table for converting the physically discontinuous addressnumbers to the continuous address numbers. To illustrate, assume thatthe driving apparatuses 13 with physical address numbers 1, 2, 5, and 6are allocated to the host computer 3 a while the driving apparatuses 13with the physical address numbers 3, 4, 7 and 8 are allocated to thehost computer 3 b. Then, the physically discontinuous address numbers 1,2, 5 and 6 are converted into continuous logical address numbers 1001 to1004 by the conversion table as shown in FIG. 11 while the physicallydiscontinuous address numbers 3, 4, 7 and 8 are converted intocontinuous logical address numbers 1005 to 1008.

As mentioned above, in the embodiment, the library controller 2 has theconversion table for converting the physically discontinuous addressnumbers to continuous address numbers. Consequently, even whendiscontinuous address numbers are allocated in practice, the librarycontroller 2 can simulate as if the driving apparatuses 13 withcontinuous address numbers were apparently used by the host computers 3a and 3 b. This makes it possible to set occupancy of the driveapparatus 13 having an arbitrary address number, even when thetransmission lines for connecting the drive apparatus 13 to the hostcomputers 3 a and 3 b are in the format according to the standardprotocol of the SCSI standard which inherently cannot deal withdiscontinuous data.

The operation of the library system having a composition as mentionedabove will now be described. First, the operation of the whole librarysystem will be described.

When the library controller 2 is activated, on the display apparatus 23of the library controller 2, the main view for control in the GUIenvironment as shown in FIG. 9 is displayed. The user executesoperations using a mouse or the like on the displayed main view forcontrol, thereby performing various settings for controlling the librarysystem.

In response to a request from the host computer 3 a and 3 b, the librarycontroller 2 transmits a command to move a desired cassette K among theinput/output port 11 in the basic console 1B, the cassette housing shelf15 in the cassette console 1C, the driving apparatus 13 in the driveconsole 1D, and the like by using the cassette carrier 16 or a commandto record or reproduce information in the driving apparatus 13 in thedrive console 1D to the basic console 1B in the cassette library 1. Acommand to move the cassette K by using the cassette carrier 16 istransmitted to the basic control unit 60 in the basic console 1B via thetransmission line 24. A command to make the driving apparatus 13 recordor reproduce information is transmitted to the main drive control unit61 in the basic console 1B via the transmission line 25.

The basic control unit 60 controls the cassette carrier 16 on the basisof a command from the library controller 2 received via the transmissionline 24. The control of the basic control unit 60 over the cassettecarrier 16 is exercised by means of infrared communications via thecarrier communication unit 67 (see FIG. 5). Under the control of thebasic control unit 60, the cassette carrier 16 performs a carryingoperation of, for example, carrying and delivering the cassette K loadedfrom the input/output port 11 in the basic console 1B to the cassettehousing shelf 15 in the cassette console 1C. In the console lineextended by the junction console 1J, the basic control unit 80 in thejunction console 1J receives a command sent from the library controller2 through the basic control unit 60 in the basic console 1B and controlsthe cassette carrier 16 in the extended console line in a manner similarto the basic control unit 60.

The main drive control unit 61 controls the drive control unit 70 in thedrive console 1D, on the basis of a command from the library controller2 received via the transmission line 25, to make the driving apparatus13 record or reproduce information. The drive control unit 70 makes thedriving apparatus 13 record or reproduce information under the controlof the main drive control unit 61.

The operation of processing for setting occupancy will be describedaccording to the flowchart shown in FIG. 14. The following descriptionincludes the description of the method of setting occupancy for therecording medium library device according to the embodiment.

When the user selects the host computer 3 a or 3 b for which occupancysetting is to be performed on the main view (see FIG. 10) for settingoccupancy displayed on the display device 23, the library controller 2displays a setting view (see FIG. 11) regarding the selected hostcomputer 3 a or 3 b. When the new creation button 120 is selected on themain view for setting occupancy shown in FIG. 10, the library controller2 also displays the setting view as shown in FIG. 11. When the addressnumber or the like indicative of the area to be occupied is inputtedwith a mouse, keyboard or the like by the user, the library controller 2reads the input value (step S101) and the read input value is displayedon the setting view (step S102).

The library controller 2 determines whether the determination (OK)button is pressed or not on the setting view (step S103). If thedetermination button is not pressed (N), the determination of step S103is repeated. If the determination button is pressed (step S103: Y), thelibrary controller 2 determines whether discontinuous discrete valuesare allocated as the physical addresses designated by the user (stepS104). If the discontinuous values are not allocated as physicaladdresses (N), the occupied area is set only by using the basic table(see FIG. 12A) (step S105).

If discontinuous values are allocated as physical addresses (step S104:Y), the physical address information is recorded by using both the basictable and the extension table (see FIG. 12B), and physicallydiscontinuous address numbers are converted to continuous logicaladdress numbers by using the conversion table (see FIG. 13) (step S106).Thus, a library controller 2 simulates as if the continuous addressnumbers were apparently set in the host computers 3 a or 3 b.

The connection between the host computer 3 a or 3 b and the drivingapparatus 13 have to be established in correspondence with the physicaladdress numbers allocated to the host computer 3 a or 3 b.

A modification of the embodiment will be described.

FIG. 15 is an explanatory diagram for explaining the modification. Toillustrate, assume that a plurality of driving apparatuses 13 ₁, 13 ₂, .. . 13 _(k) (k denotes an integer of 2 or larger) having arbitraryaddress numbers are occupied by a number of host computers 3 ₁, 3 ₂, 3_(n) (n is an integer of 2 or larger). In this case, new occupancysetting or a change in occupancy setting may result in the possibilitythat the process of switching the transmission lines connecting the hostcomputers 3 ₁, 3 ₂, 3 _(n), and the driving apparatuses 13 ₁, 13 ₂, . .. 13 _(k) becomes complicated.

In the modification, therefore, a switch 130 for automatically switchingthe connection between the host computers 3 ₁, 3 ₂, . . . 3 _(n) and thedriving apparatuses 13 ₁, 13 ₂, . . . 13 _(k) is provided at somemidpoints in the transmission lines between the host computers 3 ₁, 3 ₂,. . . 3 _(n) and the driving apparatuses 13 ₁, 13 ₂, . . . 13 _(k). Theswitch 130 is controlled by the library controller 2 in accordance withoccupancy setting. The switch 130 connects the host computers 3 ₁, 3 ₂,. . . 3 _(n) to the driving apparatuses 13 ₁, 13 ₂, . . . 13 _(k) incorrespondence with the physical address numbers allocated to the hostcomputers 3 ₁, 3 ₂, . . . 3 _(n). As a result, in the cases of newoccupancy setting or a change in occupancy setting, the connectionbetween the host computers 3 ₁, 3 ₂, 3 _(n) and the driving apparatus 13₁, 13 ₂, . . . , 13 _(k) can be automatically changed. Thereby, theprocess of switching the transmission lines can be readily performed.

Otherwise, the composition, operation and effects of the modification issimilar to those of the above-mentioned embodiment.

Although the case where occupancy setting of the driving apparatuses 13has been described in the embodiment, occupancy setting of the housingsections of the cassette housing shelves 14 and 15 and the occupancysetting of the input/output ports can be executed in a manner similar tothe case with the driving apparatuses 13.

With reference to FIG. 16, the operation as to the featurescharacteristic of the invention in the library system will be describedbelow. FIG. 16 shows mainly the operation of the central processingcontrol unit 46 in the controller body 21 (see FIG. 3) of the librarycontroller 2. As shown in the flowchart, the central processing controlunit 46 of the library controller 2 always checks whether a command issupplied from the host computer 3 or not. If a command is supplied fromthe host computer 3 (step S201; Y in FIG. 16), the central processingcontrol unit 46 reviews the inputted command. If the inputted command isa command to carry the cassette K in the cassette housing shelf 14 or 15to the driving apparatus 13 (step S202; Y), the central processingcontrol unit 46 checks the address of the housing section in thecassette housing shelf 14 or 15 and the address of the driving apparatus13 designated by the command, while creating a command to carry thecassette K from the cassette housing shelf 14 or 15 to the drivingapparatus 13 by using the obtained address information, and thentransmits the command to the cassette library 1 (step S203 ). In thecase of other commands (step S202; N), other processes are performed.

The command to carry the cassette K from the cassette housing shelf 14or 15 to the driving apparatus 13 is sent from the library controller 2to the basic control unit 60 in the basic console 1B in the cassettelibrary 1. The command is further sent from the carrier communicatingunit 67 in the basic control unit 60 to the cassette carrier 16. Thecassette carrier 16 which receives the command unloads the cassette Kfrom the designated housing section of the cassette housing shelf 14 or15 and carries the cassette K to the designated driving apparatus 13. Asshown in FIG. 7, the cassette K carried to the driving apparatus 13 isinserted to the inside through the cassette loading/ejecting port 131.The operation is detected by the photosensor 132. Specifically, thecassette carriage detection signal 135 from the light receiving part 133b is sent to the console control unit 62 in the basic control unit 60 inthe basic console 1B and further to the library controller 2, therebythe central processing control unit 46 recognizes the operation.

The central processing control unit 46 of the library controller 2transmits the command to carry the cassette K from the cassette housingshelf 14 or 15 to the driving apparatuses 13 to the cassette library 1in step S203 and then monitors the response from the cassette library 1.If the central processing control unit 46 detects the carriage of thecassette K to the driving apparatus 13 by means of the cassette carriagedetection signal 135 from the photosensor 132 of the driving apparatus13 (step S204; Y), the central processing control unit 46 reads out thesystem information file of the hard disk drive 49 and determines whetherthe load waiting mode or immediate determining mode is set for thesystem. If it is found that the immediate determining mode is set (stepS205 N), the central processing control unit 46 immediately determinesthat the cassette loading has been completed, without waiting for thenotification of the end of the loading process from the drive controlunit 70 which controls the driving apparatus 13. Then the centralprocessing control unit 46 sends the notification of completion ofloading of the cassette to the host computer 3 (step S206).

On the other hand, if the load waiting mode is set (step S205; Y), thecentral processing control unit 46 further reads the system informationfile of the hard disk drive 49 and checks the mode (either the automaticloading mode or the on-demand loading mode) of the driving apparatus 13.If it is found that the driving apparatus 13 is set in on-demand loadingmode (step S207; N), the central processing control unit 46 transmits aload executing command to the drive control unit 70 for controlling thedriving apparatus 13 (step S208) and, after that, monitors a responsefrom the drive control unit 70 of the driving apparatus 13. If thedriving apparatus 13 is set in automatic loading mode (step S207; Y),the central processing control unit 46 continues to monitor the responsefrom the drive control unit 70 of the driving apparatus 13. If the loadend is notified by the drive control unit 70 of the driving apparatus 13(step S209; Y), eventually the central processing control unit 46determines that the cassette loading has been completed and then sendsthe notification of completion of loading of the cassette to the hostcomputer 3 (step S206)

When the host computer 3 receives the notification of completion ofloading of the cassette from the library controller 2, the host computer3 transmits a command to carry the next cassette to the librarycontroller 2. Then similar operations are repeated.

In the foregoing embodiment, the components of the photosensor 132 aredisposed on both sides of the cassette loading/unloading port 131 on thefront face of the driving apparatus 13. The components of thephotosensor 132, however, can be disposed in other positions, forexample, inside the driving apparatus 13.

In the embodiment described above, the library controller 2 can selecteither the load waiting mode or immediate determining mode. It is alsopossible that only the immediate determining mode is provided.

Also, in the embodiment described above, the drive control unit 70 forcontrolling the driving apparatus 13 is set in either automatic loadingmode or on-demand loading mode. It is also possible that only theautomatic loading mode is provided.

Description will now be made in further detail of the operation ofloading the cleaning cassette KC (hereinbelow, the cassette K and thecassette KC are described so as to be distinguished from each other)into the driving apparatus 13 and cleaning the data write/read heads inthe driving apparatus 13 and the tape travel system such as capstan.FIG. 17 shows the operation mainly related to the head cleaning processin the central processing control unit 46 in the controller body 21 (seeFIG. 3) of the library controller 2.

As shown in the flowchart, when the head cleaning timing of the drivingapparatus 13 arrives, the central processing control unit 46 of thelibrary controller 2 transmits a command to carry the cleaning cassetteto the driving apparatus 13 to the cassette library 1 (step S301 in FIG.17). The timing of cleaning the head of the driving apparatus 13 is setwhen the cumulative time of use of the recording and reproducing headreaches, for example, 50 hours from the previous head cleaning. Thetiming may be also a time point when the time of use reaches time longeror shorter than 50 hours. Whether the timing of the head cleaning hasarrived or not is determined by, for example, the central processingcontrol unit 46 of the library controller 2. Specifically, the centralprocessing control unit 46 always cumulatively counts the time of use ofthe recording and reproducing head of the driving apparatus 13 anddetermines that the timing arrives when the count value reaches a valueset as information on time of use of head in the system information filein the hard disk drive 49. It is also possible to determine the time ofuse by another method. In another alternative, the cleaning may beperformed when a cleaning request is issued from the host computer 3.

A command to carry the cleaning cassette sent from the centralprocessing control unit 46 of the library controller 2 is transmitted tothe cassette carrier 16 via the basic control unit 60 (see FIG. 5) ofthe basic console 1B. The cassette carrier 16 unloads the cleaningcassette from the designated housing section in the cassette shelf 15 inaccordance with the received command and carries the cleaning cassetteto the designated driving apparatus 13. When the loading of the cleaningcassette is completed, the drive control unit 70 of the drivingapparatus 13 notifies the completion to the library controller 2 via themain drive control unit 61 (see FIG. 5) of the basic console 1B.

When the central processing control unit 46 of the library controller 2receives the notification of the loading completion of the cleaningcassette, the central processing control unit 46 transmits the headcleaning command to the driving apparatus 13 (step S302). The command issent to the drive control unit 70 via the main drive control unit 61(see FIG. 5) of the basic console 1B. The driving apparatus 13 executesthe head cleaning by using the cleaning cassette. When the head cleaningfor a predetermined time (for example, about 5 to 10 seconds) isnormally finished, the drive control unit 70 notifies the centralprocessing control unit 46 of the end of the head cleaning. If the headcleaning is finished normally, the drive control unit 70 further checkswhether or not the tape of the cleaning cassette has ended at the timepoint of completion of cleaning. The drive control unit 70 sends theresult to the central processing control unit 46 together with thenotification of the head cleaning end. If the tape of the cleaningcassette KC has ended during the head cleaning of this time and thecleaning has been interrupted, the drive control unit 70 notifies thecentral processing control unit 46 of interruption of the cleaning.

If the central processing control unit 46 receives the information onthe end of the tape and the cleaning end notification, or receivescleaning interruption notification from the drive control unit 70 (stepS303; Y), the central processing control unit 46 determines whether thecleaning cassette is in a usable state or not, by means of thenotification. In other words, if the head cleaning has been normallyfinished and the tape has not been ended yet (step S304; N), the centralprocessing control unit 46 performs updating by incrementing the numberof times the cleaning cassette is used in the system information filestored in the hard disk drive 49 only by one (step S305). If the numberof times the cleaning cassette is used is still within a specifiednumber after the updating (step S306; Y), the central processing controlunit 46 sends a command to carry the cleaning cassette from the drivingapparatus 13 to the original housing section in the cassette housingshelf 15 to the cassette library 1 (step S307).

On the other hand, as a result of the determination in step S304, in thecase where the tape of the cleaning cassette is ended although the headcleaning is normally finished, in the case where the tape is endedduring the cleaning and the cleaning is accordingly interrupted (stepS304; Y), or in the case where the number of times the cleaning cassetteis used reaches a specified number after updating the number of times instep S305 (step S306; N), the central processing control unit 46executes the processes of step S308 and subsequent steps.

In step S308, the central processing control unit 46 checks whether ornot the cassette library 1 has the input/output port 11 as the cassetteejecting mechanism. The process is performed by reading the systeminformation file in the hard disk drive 49 and checking information onpresence or absence of the ejecting mechanism. If the cassette library 1has the input/output port 11 (step S308; Y), the central processingcontrol unit 46 transmits a cleaning cassette ejecting command to thecassette library 1 (step S309) and displays a message to refill a newcleaning cassette on the display unit 12 in the basic console 1B of thecassette library 2 and the display device 23 of the library controller 2(step S310). On the other hand, if the cassette library 1 does not havethe input/output port 11 (step S308; N), the central processing controlunit 46 displays a message to replace the cleaning cassette on thedisplay unit 12 in the basic console 1B of the cassette library 2 andthe display device 23 of the library controller 2 (step S311).

In the embodiment described above, the case of using a cleaning cassetteof a type which is not rewound and used has been described. However, theinvention is not limited to this but can be applied to a cleaningcassette of a type which can be rewound and repeatedly used. In thiscase, a cleaning cassette may be rewound when no tape of the cleaningcassette is left, and used again from the head. The count value of thenumber of times the cleaning cassette is used is not reset with eachtape rewinding operation but accumulated. When the number of timesreaches a specified number, it may be determined that the cleaningcassette has been used to the limit.

Although the embodiment has been described on the assumption that therecording medium is a cassette tape, the invention is not limited tothis but can be applied to recording media in other forms (for example,disk-shaped recording media such as optical disk or replaceable magneticdisk). In this case, obviously, the form of the cleaning mediumcorresponds to the form of the recording medium.

As described above, according to the recording medium library device orits occupancy setting method of the invention, a part to be occupied isset for one or more clients by converting between physical addresses andlogical addresses managed by the client. Consequently, occupancy can befreely set for the client. In this case, with respect to two or morerecording and reproducing means, in addition to setting a part to beoccupied and performing conversion between physical addresses andlogical addresses, the information transmission lines between therecording and reproducing means and the client can be switched inaccordance with the conversion between the physical addresses andlogical the addresses by control means. Consequently, the informationtransmission lines between the recording and reproducing means and theclient can be automatically switched in accordance with the conversionbetween the physical addresses and the logical addresses by the controlmeans.

According to another recording medium library device, a method ofdetermining completion of loading of a recording medium therefor or amethod of notifying completion of loading of a recording mediumtherefor, a request to load the recording medium housed in the housingsection in the recording medium housing means to the recording andreproducing means is sent to the carrying means, and the carriage of therecording medium to the recording and reproducing means is detected.When the carriage of the recording medium to the recording andreproducing means is detected, it is determined that loading of therecording medium is completed, without waiting for the completion of thepreparing operation to be performed by the recording and reproducingmeans after the recording medium is loaded. The conventional uselesswaiting time in the carriage of the recording medium can be thereforeeliminated. This contributes to an improvement in the processingefficiency of the recording medium library device. In the recordingmedium library device or the method of notifying completion of loadingof a recording medium therefor, the request to load the recording mediumhoused in the housing section in the recording medium housing means tothe recording and reproducing means is sent to the carrying means, andthe carriage of the recording medium to the recording and reproducingmeans is detected. When the carriage of the recording medium to therecording and reproducing means is detected, it is determined that theloading of the recording medium is completed, without waiting forcompletion of the preparing operation executed by the recording andreproducing means after the recording medium is loaded and anotification of loading completion of the recording medium is sent tothe client. The client can therefore send the next request to therecording medium library device without waiting for completion of thepreparing operation to be executed by the recording and reproducingmeans. The waiting time which is conventionally useless to the clientcan be therefore eliminated and the processing efficiency of the wholesystem including the client and the recording medium library device isimproved. In the recording medium library device, after the recordingmedium is loaded, the recording and reproducing means performs apreparing operation of reading information for retrieving data recordedon the recording medium. In addition to the effect above, the processingspeed with which the data on the recording medium is accessed isincreased and the processing efficiency of the recording medium librarydevice as a whole is further improved.

According to still another recording medium library device of theinvention or a cleaning method of the recording medium library device,the cleaning medium is automatically carried from the housing section ofthe recording medium housing means to the recording and reproducingmeans at a preset timing. The recording and reproducing means is cleanedby the cleaning medium, and after that, the cleaning medium is carriedto the housing section in the recording medium housing means. The stateof the cleaning medium is monitored and it is determined whether thecleaning medium has been used to the limit or not. Consequently, evenwhen the recording and reproducing means is automatically cleaned by thecleaning medium, an inconvenience such that a cleaning medium which hasbeen used to the limit and is in an unusable state is used again forcleaning and the cleaning is not properly performed can be avoided. Thatis, use of the cleaning medium can be properly managed and cleaning ofthe recording medium library device can be ensured. In this case, whenthe number of times the cleaning medium is used is monitored and it isdetermined that the cleaning medium has been used to its limit when thenumber of times reaches a predetermined number, it is not necessary tomonitor the presence or absence of an area which is actually usable inthe cleaning medium. Since the limit of use can be determined simply bymonitoring the number of times, use of the cleaning medium is easilymanaged. The presence or absence of the usable area of the cleaningmedium is monitored and it is determined that the cleaning medium hasbeen used to the limit when there is no usable area. Thus, for example,when the cleaning is performed by using a cleaning medium which has beenalready used to a certain degree, even if the use history (number oftimes) is unclear, the limit of use can be determined before thecleaning medium becomes unusable. Even when the cleaning medium withunclear use history is used, the use of the cleaning medium can beproperly managed, and the cleaning of the recording medium librarydevice can be ensured. Further, the ejecting unit for ejecting therecording medium and the cleaning medium to the outside is provided.When the cleaning medium has been used to the limit, the cleaning mediumis carried to the ejecting unit by the carrying means. The unnecessarycleaning medium which becomes unusable can be certainly ejected to theoutside of the apparatus and the trouble of taking out the unnecessarycleaning medium by the user himself/herself is eliminated. By outputtinginformation to eject the cleaning medium when the cleaning medium hasbeen used to its limit, the user can immediately know occurrence of anunnecessary cleaning medium which becomes unusable. Thus, in therecording medium library device having no recording medium ejectingmechanism, the possibility that the unnecessary cleaning mediumcontinuously occupies a part of the housing shelf or is used again canbe avoided.

Obviously many modifications and variations of the present invention arepossible in the light of the above teachings. It is therefore to beunderstood that within the scope of the appended claims that inventionmay be practiced otherwise than as specifically described.

What is claimed is:
 1. A recording medium library device comprising: adrive console including one or more recording and reproducing means forperforming at least either recording or reproduction of information byusing a removable recording medium; a basic console for importing saidrecording medium to the library device and for exporting said recordingmedium from the library device; recording medium housing means having aplurality of housing sections, each capable of housing the recordingmedium; carrying means for carrying the recording medium between any oneof the housing sections in the recording medium housing means and therecording and reproducing means; and control means for controlling thecarrying means and the recording and reproducing means in response to arequest from a client, wherein the control means has a function ofsetting a part to be occupied for one or more clients and a function ofconverting between a physical address and a logical address managed bythe client, with respect to a part to be occupied; and whereby saiddrive console and said basic console are selectively connected to oneanother so that the respective positions of said drive console and saidbasic console can be readily changed.
 2. A recording medium librarydevice according to claim 1, wherein the control means has a function ofsetting a part to be occupied with regard to at least either therecording and reproducing means or the recording medium housing means.3. A recording medium library device according to claim 1, furthercomprising loading/ejecting means for loading and ejecting the recordingmedium into/from the device, wherein the control means has a function ofsetting a part to be occupied with regard to at least either therecording and reproducing means, the recording medium housing means, orthe loading/ejecting means.
 4. A recording medium library deviceaccording to claim 1, wherein the control means allocates continuousaddresses as logical addresses for one client.
 5. A recording mediumlibrary device according to claim 1, wherein two or more recording andreproducing means are provided, and the control means sets a part to beoccupied and converts between a physical address and a logical address,with regard to the recording and reproducing means, the recording mediumlibrary device further comprising switching means for switchinginformation transmission lines between the recording and reproducingmeans and the client in accordance with the conversion between thephysical address and the logical address by the control means.
 6. Anoccupancy setting method for a recording medium library device whichcomprises: a drive console including one or more recording andreproducing means for performing at least either recording orreproduction of information by using a removable recording medium; abasic console for importing said recording medium to the library deviceand for exporting said recording medium from the library device;recording medium housing means having a plurality of housing sections,each capable of housing the recording medium; carrying means forcarrying the recording medium between any one of the housing sections inthe recording medium housing means and the recording and reproducingmeans; and control means for controlling the carrying means and therecording and reproducing means in response to a request from a client,wherein the control means sets a part to be occupied for one or moreclients and converts between a physical address and a logical addressmanaged by the client, with regard to a part to be occupied; and wherebysaid drive console and said basic console are selectively connected toone another so that the respective positions of said drive console andsaid basic console can be readily changed.
 7. An occupancy settingmethod for a recording medium library device according to claim 6,wherein the control means sets a part to be occupied with regard to atleast either the recording and reproducing means or the recording mediumhousing means.
 8. An occupancy setting method for a recording mediumlibrary device according to claim 6, wherein the recording mediumlibrary device further comprises loading/ejecting means for loading andejecting the recording medium into/from the device, and the controlmeans sets a part to be occupied with regard to at least either therecording and reproducing means, the recording medium housing means, orthe loading/ejecting means.
 9. An occupancy setting method for arecording medium library device according to claim 6, wherein continuousaddresses are allocated as logical addresses for one client.
 10. Anoccupancy setting method for a recording medium library device accordingto claim 6, wherein with regard to two or more recording and reproducingmeans, a part to be occupied is set and conversion between a physicaladdress and a logical address is performed, and information transmissionlines are switched between the recording and reproducing means and theclient in accordance with the conversion between the physical addressand the logical address by the control means.